require.config({
    baseUrl: "../js",
    paths: {
      "jquery"				: "../util/jquery/jquery",
      "jquery-ui"			: "../util/jquery/jquery-ui",
      "bootstrap"			: "../util/bootstrap/bootstrap",
      "angular" 			: "../util/angular/angular",
      "ui.router" 			: "../util/angular/angular-ui-router",
      "angular-cookies"		: "../util/angular/angular-cookie.min",
      "angular-dragdrop"	: "../util/angular/angular-dragdrop",
      "angular-dragdrop.min": "../util/angular/angular-dragdrop.min",
      "angular-drag"		: "../util/angular/angular-drag",
      "ocLazyLoad"			: "../util/angular/ocLazyLoad",
      "angularFileUpload"          : "public/upload/angular-file-upload.min",
      "echarts"				: "../util/echarts",
      "echartscommon"		: "../util/echarts.common.min",
      "echartsmin"			: "../util/echarts.min",
      "angular-async-loader": "../util/angular/angular-async-loader",
      "tm.pagination"		: "public/pagination/tm.pagination",
      "angularTree"        	: "public/tree/angular-tree-control",
      "zTree"        	    : "../util/ztree/jquery.ztree.core",
      "zTreeExcheck"        : "../util/ztree/jquery.ztree.excheck",
      "jqueryForm"          : "../util/jqueryForm/jquery.form",
      "lodash"              : "../util/ztree/lodash.min",
      "app" 				: "app/app",
      "app-routes"      	: "app/app-routes",
      "header"				: "public/header",
      "index"				: "index/index",
      "rolesdetails"        : "user/roles/roles-details",
      "roledetails"        	: "user/role/role-details",
      "roleby"          	: "user/role/roleby", 
      "rolebyrole"          : "user/role/roleby-role",
      "rolebyuser"          : "user/role/roleby-user",
      "selectCache"         : "service/selectCache",
      "perSelectCache"      : "service/permissionSelectCache",
      "empSelectCache"      : "service/empowerSelectCache",
      "cache"              	: "service/cookieCache",
      "promptCache"        	: "service/promptCache",  
    },
    shim: {
       'angular'			: {exports:'angular'},
       'ui.router'			: {deps: ['angular']},
       'tm.pagination'		: {deps: ['angular',]},
       'angularFileUpload'	: {deps: ['angular',]},
       'ocLazyLoad'			: {deps: ['angular',]},
       'angularTree'		: {deps: ['angular',]},
       'angular-cookies'	: {deps: ['angular',]},
       'angular-dragdrop.min': {deps: ['angular',]},
       'angular-dragdrop'	: {deps: ['angular',]},
       'angular-drag'		: {deps: ['angular',]},
       'app-route'			: {deps: ['ui.router']},
       'app'				: {deps: ['ui.router','tm.pagination','angularFileUpload','ocLazyLoad','angularTree','angular-cookies','angular-dragdrop','angular-drag']},
      
    },
    //,'../util/angular/angular'
    deps: ['jquery']
    
});
//'ui.router','Cookies','tm.pagination','ocLazyLoad'
require(['angular','ui.router','app-routes','index'], function (angular) {
	var angular = require('angular');
	
    angular.element(document).ready(function(){
        angular.bootstrap(document, ['app']);
        angular.element(document).find('html').addClass('ng-app');
        
    });

});
